package com.zyg.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zyg.entity.Student;
import com.zyg.entity.vo.StudentVo;
import com.zyg.mapper.StudentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

public interface StudentService {

    List<Student> findAll();

    int delete(int sid);

    int update(Student student);

    Student findById(int sid);

    int add(Student student);

    IPage<Student> findByPage(int page, int pageSize);

    IPage<Student> search(int page, int pageSize, StudentVo vo);
}
